package com.atguigu.java.ai.langchain4j.assistant;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import org.springframework.data.annotation.Id;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,chatModel = "qwenChatModel", chatMemoryProvider = "messageChatMemoryProvider",tools = "calculatorTools")
public interface CalculatorAssistant {
    @SystemMessage("你是一个数学家，请用中文回答我的问题")
    String chat(@MemoryId int memoryId, @UserMessage String UserMessage);
}
